package top.abrsm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
import java.util.List;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品表
 * </p>
 * @author WuZH
 * @since 2023-11-18
 */
@Data
@TableName ("product_info")
@ApiModel (value = "ProductEntity对象", description = "商品表")
public class ProductEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("商品类目Id")
    @TableField ("categoryId")
    private String categoryId;

    @ApiModelProperty ("商品名称")
    @TableField ("productName")
    private String productName;

    @ApiModelProperty ("原价")
    @TableField ("originalPrice")
    private String originalPrice;

    @ApiModelProperty ("实价")
    @TableField ("actualPrice")
    private String actualPrice;

    @ApiModelProperty ("发货地")
    @TableField ("originalPlace")
    private String originalPlace;

    @ApiModelProperty ("库存数量")
    @TableField ("stockNumber")
    private Integer stockNumber;

    @ApiModelProperty ("商品描述")
    @TableField ("info")
    private String info;

    @ApiModelProperty ("商品详情图片")
    @TableField ("detailsImgUrl")
    private String detailsImgUrl;

    @TableField ("createTime")
    private Date createTime;

    @TableField ("changeTime")
    private Date changeTime;

    @ApiModelProperty ("是否有用")
    @TableField ("isUsed")
    private Integer isUsed;


    @TableField (exist = false)
    private List<FileEntity> fileEntities;
    @TableField (exist = false)
    private String carId;

}
